/**
 * @Author YuanYuan
 * @Date 2022/4/23
 * @Time 18:36
 */
public class TestDemo {
    public static int MAX = 2000;
    public static void main(String[] args) {
        for (int i = 1000; i <= MAX ; i++) {
            if(0 == i%4) {
                if(i%100 != 0) {
                    System.out.println(i);
                }
            }else if(0 == i%400) {
                System.out.println(i);
            }
        }
    }
}
